package com.ruoyi.equ.service.impl;


import com.ruoyi.equ.domain.EquInsplan;
import com.ruoyi.equ.mapper.EquInsplanMapper;
import com.ruoyi.equ.service.IEquInsplanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 设备送检详情Service业务层处理
 * 
 * @author luguanqing
 * @date 2020-10-29
 */
@Service
public class EquInsplanServiceImpl implements IEquInsplanService
{
    @Autowired(required = false)
    private EquInsplanMapper equInsplanMapper;

    /**
     * 查询设备送检详情
     * 
     * @param id 设备送检详情ID
     * @return 设备送检详情
     */
    @Override
    public EquInsplan selectEquInsplanById(String id)
    {
        return equInsplanMapper.selectEquInsplanById(id);
    }


    /**
     * 根据送检批次编号查询设备送检详情
     * @param insId 设备送检详情insId
     * @return 设备送检详情
     */
    @Override
    public List<EquInsplan> selectEquInsplanByInsId(String insId) {
        return equInsplanMapper.selectEquInsplanByInsId(insId);
    }

    /**
     * 查询设备送检详情列表
     * 
     * @param equInsplan 设备送检详情
     * @return 设备送检详情
     */
    @Override
    public List<EquInsplan> selectEquInsplanList(EquInsplan equInsplan)
    {
        return equInsplanMapper.selectEquInsplanList(equInsplan);
    }

    /**
     * 新增设备送检详情
     * 
     * @param equInsplan 设备送检详情
     * @return 结果
     */
    @Override
    public int insertEquInsplan(EquInsplan equInsplan)
    {
        return equInsplanMapper.insertEquInsplan(equInsplan);
    }


    /**
     * 新增设备送检详情
     *
     * @param equInsplan 设备送检详情
     * @return 结果
     */
    @Override
    public int insertEquInsplans(List<EquInsplan> equInsplan) {
        return equInsplanMapper.insertEquInsplans(equInsplan);
    }

    /**
     * 修改设备送检详情
     * 
     * @param equInsplan 设备送检详情
     * @return 结果
     */
    @Override
    public int updateEquInsplan(EquInsplan equInsplan)
    {
        return equInsplanMapper.updateEquInsplan(equInsplan);
    }


    /**
     * 修改设备送检证书验证
     *
     * @param equInsplan 设备送检详情
     * @return 结果
     */
    @Override
    public int updateEquInvalidity(EquInsplan equInsplan) {
        return equInsplanMapper.updateEquInvalidity(equInsplan);
    }

    /**
     * 批量删除设备送检详情
     * 
     * @param ids 需要删除的设备送检详情ID
     * @return 结果
     */
    @Override
    public int deleteEquInsplanByIds(String[] ids)
    {
        return equInsplanMapper.deleteEquInsplanByIds(ids);
    }

    /**
     * 删除设备送检详情信息
     * 
     * @param id 设备送检详情ID
     * @return 结果
     */
    @Override
    public int deleteEquInsplanById(String id)
    {
        return equInsplanMapper.deleteEquInsplanById(id);
    }
}
